import { Entity, Column, PrimaryGeneratedColumn, ManyToMany } from 'typeorm';
import { AnyStudent } from './any.student.entity';

@Entity()
export class AnyCourse {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  title: string;

  @ManyToMany(() => AnyStudent, student => student.courses)
  students: AnyStudent[];
}